fs = open('./LanguageToCode/Resources/Tags', 'r')
tags = []
for line in fs.readlines():
    tempList = line.split(' ')
    if len(tempList) != 2:
        continue
    tags.append(tempList[0])

fs.close()
fs = open('./LanguageToCode/Resources/Tag.py', 'w')
n = len(tags)
for i in range(n):
    fs.write('%s = %d\n' % (tags[i], i))
fs.close()
